import { createSlice } from '@reduxjs/toolkit'

const countslice = createSlice({
    name: 'counter',
    initialState: {
        list: [
            
        ]
    },
    reducers: {
        xi(state, actions) {
            state.list = actions.payload
            sessionStorage.setItem('user',JSON.stringify(state.list))
        }
    }
})

export const { xi } = countslice.actions
export default countslice